package cn.tuling.org.service;

import cn.tuling.basic.util.PageList;
import cn.tuling.org.domain.Novel;
import cn.tuling.org.query.NovelQuery;

import java.util.List;

public interface NovelService {
    //添加
    void addNovel(Novel novel);

    //修改
    void updateNovel(Novel novel);

    //删除
    void deleteNovel(Long id);

    //查询所有
    List<Novel> findAll();

    //查询单条数据
    Novel findById(Long id);


    //分页
    PageList<Novel> queryByPage(NovelQuery novelQuery);
}
